package com.wee.model;

import java.util.Objects;

/**
 * Created by xiaobing on 15/7/16.
 * 传递数据， 传承数据， 页面间传递数据
 */
public class ModelSingle {

    private Object model;

    private static ModelSingle instance = null;
    public synchronized static ModelSingle getInstance(){
        if(instance == null){
            instance = new ModelSingle();
        }
        return instance;
    }

    public Object getModel() {
        return model;
    }

    public void setModel(Object model) {
        this.model = model;
    }

    public void clear(){
        model = null;
    }
}
